package net.lucamasini.fantacalcio.server.model;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Pronostico extends Risultato {

	private static final long serialVersionUID = 1L;

	@NotNull
    private String username;

    @ManyToOne(targetEntity = Partita.class)
    @JoinColumn
    private Partita partita;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Partita getPartita() {
		return partita;
	}

	public void setPartita(Partita partita) {
		this.partita = partita;
	}
}
